import request from '@/utils/request'

// 查询考试关联用户表列表
export function listExamstudent(query) {
  return request({
    url: '/business/examstudent/list',
    method: 'get',
    params: query
  })
}

// 查询考试关联用户表详细
export function getExamstudent(id) {
  return request({
    url: '/business/examstudent/' + id,
    method: 'get'
  })
}

// 新增考试关联用户表
export function addExamstudent(data) {
  return request({
    url: '/business/examstudent',
    method: 'post',
    data: data
  })
}

// 修改考试关联用户表
export function updateExamstudent(data) {
  return request({
    url: '/business/examstudent',
    method: 'put',
    data: data
  })
}

// 删除考试关联用户表
export function delExamstudent(id) {
  return request({
    url: '/business/examstudent/' + id,
    method: 'delete'
  })
}
